//
//  DHGoodListViewModel.h
//  宏达APP
//
//  Created by DIANGHONG on 2018/4/29.
//  Copyright © 2018年 123. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DHPlanList.h"
#import "DHPlanInfo.h"

@class DHGoodListModel;
@interface DHGoodListViewModel : NSObject

@property(nonatomic ,strong)NSArray<DHGoodListModel *> *listModel;
@property(nonatomic ,strong)NSArray<DHPlanList *> *planList;
@property(nonatomic ,strong)DHPlanInfo *planInfo;

- (void)loadGoodListIsPullUP:(BOOL)pullUP key:(NSNumber *)key oder:(NSNumber *)oder plan_id:(NSNumber *)plan_id gc_id:(NSNumber *)gc_id finishedBlock:(void(^)(BOOL Success,BOOL noMoreData))finishedBlock;

// 加载配置单数据
- (void)loadConfigWithPlanID:(NSInteger)planID completion:(void(^)(BOOL isSuccess))completion;

@property(nonatomic ,assign)int page; // 当前页

@property(nonatomic ,assign)int curPage; // 记录当前页 防止重复上拉刷新

@property(nonatomic ,strong)NSArray *configList;



@end
